package com.xyh.dao;

import com.xyh.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserMapper extends BaseDao<User>{
    User checkUser(String username, String password);

    @Update("update t_user set password = #{password} where id=1")
    int updatePassword(String password);
}
